#ifndef UTILITIES_H
#define UTILITIES_H

#include <QtGlobal>

// UNIT CONVERSIONS
#define FEET_PER_MILE   5280.000f
#define MILE_PER_FEET   0.000189f
#define FEET_PER_METER  3.280839f
#define METER_PER_FEET  0.304800f
#define MILE_PER_METER  0.000621f
#define METER_PER_MILE  1609.344f

// MPH RATE CONVERSIONS
#define MPH_TO_FTPS     1.466666f
#define FTPS_TO_MPH     0.681818f
#define MPS_TO_MPH      2.236936f
#define MPH_TO_MPS      0.447040f

#define GRAVITY_MPS2    9.80f

namespace Utilities
{
  bool floatEquality(qreal lhs, qreal rhs, qreal epsilon=0.1);
}

#endif // UTILITIES_H
